﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace source.ViewModel
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserInfoViewModel
    {
        [Required(ErrorMessage = "账号不能为空")]
        public string Account { get; set; }

        public string name { get; set; }

        //用户头像
        public string headicon { get; set; }

        /// <summary>
        /// 用户的角色 1 学生 2老师 3管理员
        /// </summary>
        public int Role { get; set; }
    }
}